<?php
/**
 * Created by PhpStorm.
 * User: zy-l
 * Date: 2019/6/19
 * Time: 1:23 AM
 */

namespace App\HttpController\Api;

use App\HttpController\Base;

/**
 * 获取案例列表
 * Class Infocase
 * @package App\HttpController\Api
 */
class Infocase extends Base
{
    /**
     * 案例模型
     * @return \App\Model\InfoCase
     */
   public function getInfoCaseModel(){
       return new \App\Model\InfoCase();
   }

   public function index()
   {
       $where=[];
       $where['list_order|order']='desc';
       return $this->writePageJson('获取列表数据', $this->getInfoCaseModel()->getPageAll($this->getInfoCaseModel()->analysisWhere($where),$this->postParam('page',1)));
   }
}